package com.ccc.scala.base4_flow

object Flow3_while {
  def main(args: Array[String]): Unit = {
    // while
    var i = 0
    while (i < 5) {
      println(s"i=${i}")
      i += 1
    }

    // do.. while
    var j = 5
    do {
      println(s"j=${j}")
      j += 1
    } while (i < 5)
  }
}
